//
// Timeline Schema
//
var mongoose = require('mongoose');

var schema = mongoose.Schema({
   start          : Date,
   end            : Date,
   title          : String,
   description    : String,
   link           : String,
   image          : String,
   icon           : String,
   color          : String,
   owner_id       : String // 24 char id as String
});

schema.options.toJSON = {
   transform: function(doc, ret, options){
      delete ret._id;
      delete ret.owner_id;
      delete ret.__v;
      return ret;
   }
};

module.exports = schema;
